<?php

    require_once '../lib/maikuro/mail/MailHelper.php';
    require_once '../lib/maikuro/mail/StandardMailHandler.php';
    require_once '../lib/maikuro/mail/SmtpMailHandler.php';

    // The mail helper requires a mail handler
    MailHelper::setMailHandler(new StandardMailHandler('from-address@example.com'));

    // Get an empty mail
    $mail = MailHelper::getMail();
    // Set some data
    $mail->setTo('to-someone@example.com', 'The name of someone')
         ->setSubject('The subject')
         ->setBody('The body');

    // Uncomment to send the mail
    // MailHelper::sendMail($mail);

    // Or you could get a predefined mail, see src/mails/ExampleMail.php
    $exampleMail = MailHelper::getMail('ExampleMail');

?>
